package com.gzx.risk.core.apis.result.yuyao;

import java.util.Map;

import com.gzx.risk.core.apis.result.RiskResult;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * :{"code":0,"msg":"操作成功","data":{"status":0,"desc":"正常","isp":"CMCC"}}
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class YuyaoMobilestatus extends RiskResult {
	private int code;
	private String msg;
	private Map<String, Object> data;

	public int getStatus() {
		if (data != null && data.containsKey("status")) {
			return Integer.valueOf(data.get("status").toString());
		} else {
			return -999;
		}
	}
}
